﻿<%@ Page  Language="C#" MasterPageFile="AdminSite.master" AutoEventWireup="true"
    CodeFile="QuanLyBangGiaVe.aspx.cs" Inherits="QuanLyBangGiaVe" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 106px;
        }
        .style2
        {
        }
        .style4
        {
            height: 21px;
        }
        </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2 align="center" style="font-weight: bold">
        <asp:Label ID="lblTitle" runat="server" Text="QUẢN LÝ BẢNG GIÁ VÉ XE"></asp:Label>
    </h2>
    <table style="width: 100%">
        <tr>
            <td class="style1" valign="top">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" align="center" colspan="2" valign="top">
                <asp:Button CssClass="btnadmin" ID="btnNew" runat="server" Text="Tạo mới" Width="117px" 
                    onclick="btnNew_Click"  ValidationGroup="VanPhongValidationGroup" />  
                <asp:HiddenField ID="keyField" runat="server" />
            </td>
        </tr>
    </table>
    <p>
        <asp:GridView ID="gridViewData"  CssClass="grid-view"    runat="server" CellPadding="3" Width="921px" 
            AutoGenerateColumns="False" GridLines="Vertical" 
            onrowcommand="gridViewData_RowCommand" 
            onrowdatabound="gridViewData_RowDataBound" ShowHeaderWhenEmpty="True">
            
            <Columns>
                <asp:ButtonField Text="Sửa" CommandName="cmdEdit"  >
                <ControlStyle Font-Underline="True" />
                </asp:ButtonField>
                <asp:ButtonField Text="Xóa" CommandName="cmdDelete" >
                <ControlStyle Font-Underline="True" />
                </asp:ButtonField>
                <asp:BoundField HeaderText="STT" DataField="STT" >
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="Tên bảng giá" DataField="TEN_BANG_GIA" />
                <asp:BoundField HeaderText="Ngày tạo" DataField="NGAY_TAO" 
                    DataFormatString="{0:dd/MM/yyyy HH:mm}" />
                <asp:BoundField HeaderText="Người tạo" DataField="NGUOI_TAO_NAME" />
                <asp:BoundField HeaderText="Ngày cập nhật" DataField="NGAY_CAP_NHAT" 
                    DataFormatString="{0:dd/MM/yyyy HH:mm}" />
                <asp:BoundField HeaderText="Người cập nhật" DataField="NGUOI_CAP_NHAT_NAME" />
                <asp:ButtonField Text="Áp dụng" ButtonType="Button" 
                    CommandName="cmdNoiBat" ControlStyle-CssClass="btnadmin" ControlStyle-Width="70px" />
            </Columns>
            <FooterStyle CssClass="gridfooter"/>
            <HeaderStyle CssClass="gridheader" />
            <PagerStyle CssClass="gridpager"/>
            <RowStyle CssClass="gridrownormal" />       
            <AlternatingRowStyle CssClass="gridrowalternate" />
            <SelectedRowStyle CssClass="gridselected"  />
            <SortedAscendingCellStyle  CssClass="gridrowsortasc" />
            <SortedAscendingHeaderStyle CssClass="gridheadersortasc" />
            <SortedDescendingCellStyle CssClass="gridrowsortdesc"/>
            <SortedDescendingHeaderStyle CssClass="gridheadersortdesc" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
